﻿using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Selection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//using SEPD.Revit.Extension;

namespace ProjectTest
{
    [Transaction(TransactionMode.Manual)]
    [Regeneration(RegenerationOption.Manual)]
    [Journaling(JournalingMode.UsingCommandData)]
    public class ProjectTestCommand : IExternalCommand 
    {
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {

            CommonExternalEventHandler executeEventHandler = new CommonExternalEventHandler();

            ProjectTestView projectTestView = new ProjectTestView();

            ProjectTestViewModel projectTestViewModel = new ProjectTestViewModel(executeEventHandler);
            projectTestView.DataContext = projectTestViewModel ;
            projectTestView.Show();
             
            return Result.Succeeded;
        }
    }
}
